package com.itheima.domain.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "voice")
public class Voice implements Serializable {

    private ObjectId id; //主键id(语音)
    private Long create;//创建时间
    private Long pid;//随机查询使用的id  用于推荐系统的模型

    private Long userId;//语音用户id
    private String soundUrl;//语音地址
    private Integer remainingTimes;//剩余次数

}
